package com.reflect6;


import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data
@NoArgsConstructor
@AllArgsConstructor
public class Teacher {
    private String name;
    private double salary;


    public void teach(){
        System.out.println("老师在教书！");
    }
}
